package com.joker.orange.domain.bo;

import com.joker.common.core.domain.BaseEntity;
import com.joker.common.core.validate.AddGroup;
import com.joker.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.math.BigDecimal;

/**
 * 动漫信息业务对象 t_anime_info
 *
 * @author Joker
 * @date 2024-06-09
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class AnimeInfoBo extends BaseEntity {

    /**
     * 唯一标识
     */
    @NotNull(message = "唯一标识不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 分类ID
     */
    @NotNull(message = "分类ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long categoryId;

    /**
     * 动漫封面
     */
    @NotBlank(message = "动漫封面不能为空", groups = { AddGroup.class, EditGroup.class })
    private String animeCover;

    /**
     * 动漫名称
     */
    @NotBlank(message = "动漫名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String animeName;

    /**
     * 当前集数
     */
    @NotBlank(message = "当前集数不能为空", groups = { AddGroup.class, EditGroup.class })
    private String currentEpisode;

    /**
     * 更新到第几集
     */
    @NotBlank(message = "更新到第几集不能为空", groups = { AddGroup.class, EditGroup.class })
    private String updateEpisode;

    /**
     * 共多少集
     */
    @NotBlank(message = "共多少集不能为空", groups = { AddGroup.class, EditGroup.class })
    private String episodeTotal;

    /**
     * 动漫介绍
     */
    @NotBlank(message = "动漫介绍不能为空", groups = { AddGroup.class, EditGroup.class })
    private String animeIntroduce;

    /**
     * 动漫标签
     */
    @NotBlank(message = "动漫标签不能为空", groups = { AddGroup.class, EditGroup.class })
    private String animeLabel;

    /**
     * 动漫类型（0-连载、1-完结）
     */
    @NotBlank(message = "动漫类型（0-连载、1-完结）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String animeType;

    /**
     * 点赞数量
     */
    @NotNull(message = "点赞数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer likeNum;

    /**
     * 收藏数量
     */
    @NotNull(message = "收藏数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer collectNum;

    /**
     * 浏览数量
     */
    @NotNull(message = "浏览数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer lookNum;

    /**
     * 收费类型（0-免费看、1-VIP可看、2-钻石观看）
     */
    @NotBlank(message = "收费类型（0-免费看、1-VIP可看、2-钻石观看）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String chargeType;

    /**
     * 消耗钻石
     */
    @NotNull(message = "消耗钻石不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal consumeDiamond;

    /**
     * 是否置顶（0-是、1-否）
     */
    @NotBlank(message = "是否置顶（0-是、1-否）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String isTop;

    /**
     * 备注
     */
    private String remark;


}
